package com.hzsk.lisence.service;

import com.hzsk.lisence.config.myexception.OperateException;
import com.hzsk.lisence.entity.HardwareEntity;
import com.hzsk.lisence.entity.HardwareGroupingEntity;
import com.hzsk.lisence.entity.SoftwareEntity;
import com.hzsk.lisence.entity.query.LisenceServiceQuery;
import com.hzsk.lisence.entity.response.IncResponce;

import java.util.List;

public interface HardwareService {

    void createHardware(HardwareEntity hardwareEntity, Integer userId, IncResponce incResponce);

    void createHardwareGrouping(HardwareGroupingEntity hardwareGroupingEntity,Integer userId,IncResponce incResponce);

    Object selectHardwareGrouping();

    Object selectHardwareGroupingInfo(LisenceServiceQuery lisenceServiceQuery);

    Object selectHardwareToBeGrouped(LisenceServiceQuery lisenceServiceQuery);

    void updateHardwareGrouping(HardwareGroupingEntity hardwareGroupingEntity,Integer userId, IncResponce incResponce);

    String delHardwareGrouping(Integer id,Integer userId);

    String setSoftwareConnGrouping(Integer id,int[] ids);

    Object selectHardwareByUserId(LisenceServiceQuery lisenceServiceQuery);

    String selectHardwareNameByKey(String key);

    void updateHardware(HardwareEntity hardwareEntity,Integer userId ,IncResponce incResponce);

    String delHardware(Integer id,Integer operatorUserId);


    List<SoftwareEntity> selectSoftwareInfoById(Integer hardwareId);
}
